app(app(ack, 0), y) → app(succ, y)
app(app(ack, app(succ, x)), y) → app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) → app(app(ack, x), app(app(ack, app(succ, x)), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
app(app(ack, 0), y) → app(succ, y)
app(app(ack, app(succ, x)), y) → app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) → app(app(ack, x), app(app(ack, app(succ, x)), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
APP(app(app(app(filter2, false), f), x), xs) → APP(filter, f)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(filter2, app(f, x)), f)
APP(app(filter, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(app(filter2, app(f, x)), f), x)
APP(app(ack, app(succ, x)), y) → APP(succ, 0)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(app(app(filter2, app(f, x)), f), x), xs)
APP(app(ack, 0), y) → APP(succ, y)
APP(app(map, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) → APP(app(map, f), xs)
APP(app(ack, app(succ, x)), y) → APP(app(ack, x), app(succ, 0))
APP(app(ack, app(succ, x)), app(succ, y)) → APP(app(ack, x), app(app(ack, app(succ, x)), y))
APP(app(ack, app(succ, x)), app(succ, y)) → APP(ack, x)
APP(app(ack, app(succ, x)), app(succ, y)) → APP(app(ack, app(succ, x)), y)
APP(app(app(app(filter2, true), f), x), xs) → APP(cons, x)
APP(app(filter, f), app(app(cons, x), xs)) → APP(filter2, app(f, x))
APP(app(app(app(filter2, false), f), x), xs) → APP(app(filter, f), xs)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(filter, f), xs)
APP(app(map, f), app(app(cons, x), xs)) → APP(cons, app(f, x))
APP(app(app(app(filter2, true), f), x), xs) → APP(filter, f)
APP(app(ack, app(succ, x)), y) → APP(ack, x)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(cons, x), app(app(filter, f), xs))
APP(app(map, f), app(app(cons, x), xs)) → APP(app(cons, app(f, x)), app(app(map, f), xs))
app(app(ack, 0), y) → app(succ, y)
app(app(ack, app(succ, x)), y) → app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) → app(app(ack, x), app(app(ack, app(succ, x)), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
APP(app(app(app(filter2, false), f), x), xs) → APP(filter, f)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(filter2, app(f, x)), f)
APP(app(filter, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(app(filter2, app(f, x)), f), x)
APP(app(ack, app(succ, x)), y) → APP(succ, 0)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(app(app(filter2, app(f, x)), f), x), xs)
APP(app(ack, 0), y) → APP(succ, y)
APP(app(map, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) → APP(app(map, f), xs)
APP(app(ack, app(succ, x)), y) → APP(app(ack, x), app(succ, 0))
APP(app(ack, app(succ, x)), app(succ, y)) → APP(app(ack, x), app(app(ack, app(succ, x)), y))
APP(app(ack, app(succ, x)), app(succ, y)) → APP(ack, x)
APP(app(ack, app(succ, x)), app(succ, y)) → APP(app(ack, app(succ, x)), y)
APP(app(app(app(filter2, true), f), x), xs) → APP(cons, x)
APP(app(filter, f), app(app(cons, x), xs)) → APP(filter2, app(f, x))
APP(app(app(app(filter2, false), f), x), xs) → APP(app(filter, f), xs)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(filter, f), xs)
APP(app(map, f), app(app(cons, x), xs)) → APP(cons, app(f, x))
APP(app(app(app(filter2, true), f), x), xs) → APP(filter, f)
APP(app(ack, app(succ, x)), y) → APP(ack, x)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(cons, x), app(app(filter, f), xs))
APP(app(map, f), app(app(cons, x), xs)) → APP(app(cons, app(f, x)), app(app(map, f), xs))
app(app(ack, 0), y) → app(succ, y)
app(app(ack, app(succ, x)), y) → app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) → app(app(ack, x), app(app(ack, app(succ, x)), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPApplicativeOrderProof
↳ QDP
APP(app(ack, app(succ, x)), app(succ, y)) → APP(app(ack, x), app(app(ack, app(succ, x)), y))
APP(app(ack, app(succ, x)), app(succ, y)) → APP(app(ack, app(succ, x)), y)
APP(app(ack, app(succ, x)), y) → APP(app(ack, x), app(succ, 0))
app(app(ack, 0), y) → app(succ, y)
app(app(ack, app(succ, x)), y) → app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) → app(app(ack, x), app(app(ack, app(succ, x)), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
ack1(succ(x), succ(y)) → ack1(x, ack(succ(x), y))
ack1(succ(x), succ(y)) → ack1(succ(x), y)
ack1(succ(x), y) → ack1(x, succ(0))
ack(0, y) → succ(y)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP(app(ack, app(succ, x)), app(succ, y)) → APP(app(ack, x), app(app(ack, app(succ, x)), y))
APP(app(ack, app(succ, x)), y) → APP(app(ack, x), app(succ, 0))
Used ordering: Polynomial interpretation [25]:
APP(app(ack, app(succ, x)), app(succ, y)) → APP(app(ack, app(succ, x)), y)
POL(0) = 0
POL(ack(x1, x2)) = 1 + x1 + x2
POL(ack1(x1, x2)) = x1
POL(succ(x1)) = 1 + x1
app(app(ack, 0), y) → app(succ, y)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPApplicativeOrderProof
↳ QDP
↳ UsableRulesProof
↳ QDP
APP(app(ack, app(succ, x)), app(succ, y)) → APP(app(ack, app(succ, x)), y)
app(app(ack, 0), y) → app(succ, y)
app(app(ack, app(succ, x)), y) → app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) → app(app(ack, x), app(app(ack, app(succ, x)), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPApplicativeOrderProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ ATransformationProof
↳ QDP
APP(app(ack, app(succ, x)), app(succ, y)) → APP(app(ack, app(succ, x)), y)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPApplicativeOrderProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ ATransformationProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
ack(succ(x), succ(y)) → ack(succ(x), y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
APP(app(filter, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(app(app(filter2, false), f), x), xs) → APP(app(filter, f), xs)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(filter, f), xs)
APP(app(map, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) → APP(app(map, f), xs)
app(app(ack, 0), y) → app(succ, y)
app(app(ack, app(succ, x)), y) → app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) → app(app(ack, x), app(app(ack, app(succ, x)), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
APP(app(filter, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(filter, f), xs)
APP(app(app(app(filter2, false), f), x), xs) → APP(app(filter, f), xs)
APP(app(map, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) → APP(app(map, f), xs)
From the DPs we obtained the following set of size-change graphs: